package com.bzchao.trtc_chao;

import android.content.Intent;
import android.os.Bundle;
import android.os.Handler;
import android.view.View;

import androidx.appcompat.app.AppCompatActivity;

import com.tencent.trtc.videocall.VideoCallingCreateActivity;
import com.tencent.trtc.videocall.VideoCallingIntoActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);
        getSupportActionBar().hide();

        new Handler().postDelayed(() -> findViewById(R.id.launch_view).setVisibility(View.GONE), 2000);

        findViewById(R.id.ll_create_room).setOnClickListener(view -> {
            Intent intent = new Intent(MainActivity.this, VideoCallingCreateActivity.class);
            startActivity(intent);
        });

        findViewById(R.id.ll_into_room).setOnClickListener(view -> {
            Intent intent = new Intent(MainActivity.this, VideoCallingIntoActivity.class);
            startActivity(intent);
        });
    }

}